{% extends "base.html" %}
{% block rss %}<link rel="alternate" type="application/rss+xml" title="Все альбомы" href="/rss"/>{% endblock %}
{% block content %}
<div id="albumlist" class="left">
	<h1>{% block list_title %}Свежая свободная музыка{% endblock %}</h1>
	{% block header %}{% endblock %}
	{% for album in albums %}<div class="tile">
		<a href="/album/{{ album.id }}" title="«{{ album.name|escape }}»{% if album.artists.1 %}{% else %}{% if album.artists.0 %} by {{ album.artists.0|escape }}{% endif %}{% endif %}">
			{% if album.cover_small %}
				<img alt="cover" src="{{ album.cover_small }}"/>
			{% else %}
				<img alt="cover" src="/static/default_album_large.png"/>
			{% endif %}
		</a>
	</div>{% endfor %}
	{% block below_albums %}{% endblock %}
</div>
<div id="sidebar">
	{% if labels %}<div class="labels">
		<h2>{% if tag %}Связанные метки{% else %}Метки{% endif %}</h2>
		<ul>
			{% for label in labels %}
				<li><a href="/tag/{{ label|uurlencode }}">{{ label }}</a></li>
			{% endfor %}
		</ul>
	</div>{% endif %}

	<div id="twitter">
		<script src="http://widgets.twimg.com/j/2/widget.js"></script>
		<script>new TWTR.Widget({ version: 2, type: 'profile', rpp: 4, interval: 6000, width: 210, height: 300, theme: { shell: { background: '#333333', color: '#ffffff' }, tweets: { background: '#000000', color: '#ffffff', links: '#4aed05' } }, features: { scrollbar: false, loop: false, live: false, hashtags: true, timestamp: true, avatars: false, behavior: 'all' } }).render().setUser('FreeMusicHub').start();</script>
	</div>
</div>
{% endblock %}
